<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>player demo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<style type="text/css">

</style>
</head>
<body>

<pre>

	支持flv格式媒体地址的视频播放器 （开源播放器：Vcastr）: <br>
	下载地址: <a href="http://code.google.com/p/vcastr/" target="_blank">http://code.google.com/p/vcastr/</a> <br>
	FLV地址:<input type="text" name="url" id="url" value="{__STATIC__}/media/happy_feet.flv" style="width:498px" />
	<input type="button" value="试听/关闭" style="background:;width:70px;" onclick="stMusic(url.value)" />
    <div id="playerSpan" style="display:none">
		&nbsp;<font color="#ff0000">FLV地址测试：</font>
		&nbsp;<span id="insetplayer" style="text-align:left;"></span>
    </div>

	<!-- //swfobject 1.5 -->
	<!-- -->
	<script type="text/javascript" src="{__STATIC__}/player/js/swfobject1.5.js"></script>
	<script type="text/javascript">
		function the(s){return document.getElementById(s);}
		function stMusic(url){
			if(the("playerSpan").style.display=="none"){
				var so = new SWFObject("{__STATIC__}/player/swf/vcastr.swf","swfplayer","458","350","9","#000000");
				so.addParam("allowfullscreen","true");
				so.addParam("allowscriptaccess","always");
				so.addParam("wmode","opaque");
				so.addParam("quality","high");
				//so.addParam("salign","lt");
				so.addVariable("vcastr_file",url);
				so.addVariable("vcastr_title","");
				so.addVariable("menu","false");
				so.write("insetplayer");
				/*_____________*/
				the("playerSpan").style.display = "block";
			} else {
				the("insetplayer").innerHTML = "";
				the("playerSpan").style.display = "none";
			}
		}
	</script>
	

	<!-- //swfobject 2.0 -->
	<!-- 
	<script type="text/javascript" src="{__STATIC__}/player/js/swfobject.js"></script>
	<script type="text/javascript">
		function the(s){return document.getElementById(s);}
		function stMusic(url){
			if(the("playerSpan").style.display=="none"){
				swfobject.embedSWF("{__STATIC__}/player/swf/vcastr.swf", "insetplayer", "458", "350", "10.0.0", null, 
				{
					vcastr_file: url,
					vcastr_title: '',
					menu: 'false'
				},
				{
					quality: "high",
					menu: "false",
					wmode: "opaque",
					allowFullScreen: "true",
				},
				{
					id: 'swfplayer',
					name: 'swfplayer'
				});
				/*_____________*/
				the("playerSpan").style.display = "block";
			} else {
				the("playerSpan").style.display = "none";
			}
		}
	</script>
	-->

</pre>

</body>
</html>
